package com.oriole.admin.controller;

import com.oriole.admin.feign.ISysMenuService;
import com.oriole.admin.utils.SecurityUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

/**
 * Created by IntelliJ IDEA.
 *
 * @author doublelife
 * Date: 2020/8/3 21:36
 * description:
 */
@Api(tags = {"系统入口接口"})
@Controller
public class IndexController {

    private static final Logger log = LoggerFactory.getLogger(IndexController.class);

    @Resource
    private ISysMenuService sysMenuService;

    @ApiOperation(value = "系统Home-首页")
    @GetMapping({"", "index"})
    public String index() {
        // 获取当前用户拥有的菜单
        Long userId = SecurityUtils.getUserId();
        return "index";
    }



}
